package com.littleken.foodiePojo.query;

import com.littleken.foodiePojo.query.base.QueryParamDTO;

/*
 * 商品评价分页查询
 * Create by littleken on 2020/11/24 15:19
 */
public class ItemCommentQueryParam extends QueryParamDTO {

    private ItemCommentSortEnum sortBy;

    private String userId;

    @Override
    public ItemCommentSortEnum getSortBy() {
        return sortBy;
    }

    public void setSortBy(ItemCommentSortEnum sortBy) {
        this.sortBy = sortBy;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    private enum ItemCommentSortEnum {
        id("id"),
        userId("user_id"),
        itemId("item_id"),
        itemName("item_name"),
        itemSpecId("item_spec_id"),
        specName("sepc_name"),
        commentLevel("comment_level"),
        content("content"),
        createdTime("created_time"),
        updatedTime("updated_time");
        private String code;

        ItemCommentSortEnum(String code) {
            this.code = code;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

    }

}
